<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:include page="/includes/head.jsp" />

<div id="page">
	<div id="header"></div>

	<div id="mainarea">
		<div id="sidebar">
			<div id="headerleft">
				<h1>
					<a href="<c:url value="/home.jsp" />"><fmt:message key="time_pesquisa" /></a>
				</h1>
			</div>
			<div id="menulinks">
				<a href="<c:url value="/home.jsp" />"><fmt:message key="home" /></a> 
				<a href="<c:url value="/membro/index" />"><fmt:message key="membros" /> </a> 
				<a href="<c:url value="/publicacao/index" />"><fmt:message key="publicacoes" /> </a> 
				<a class="active" href="<c:url value="/linhaPesquisa/index" />"><fmt:message key="linha" /> </a>
					#if($historicoVisitas)
					<a href="<c:url value="/visitante/index" />"><fmt:message key="visitante" /> </a>
					#end				 
				<a href="<c:url value="/contato.jsp" />"><fmt:message key="contato" /> </a>
			</div>
		</div>

		<div id="contentarea">
			<h2><fmt:message key="cadastro" /></h2>
			
			<div id="contenterros">
				<c:forEach var="error" items="${errors}">
			    		<h4><fmt:message key="${error.category}" /></h4>
				</c:forEach>
			</div>

		<form action="<c:url value="/linhaPesquisa/adiciona"/>" method="post">
		<p>
					<LABEL for="titulo"><fmt:message key="titulo" />*:</LABEL>
					<INPUT type="text" name="linhaPesquisa.titulo" size="30" value="${linhaPesquisa.titulo}" />

					<LABEL for="sumario"><fmt:message key="sumario"/>*:</LABEL> 
					<INPUT type="text" name="linhaPesquisa.sumario" size="30" value="${linhaPesquisa.sumario}" /> 
				</p>

				<p>
					<LABEL for="financiadores"><fmt:message key="financiadores"/>:</LABEL> 
					<INPUT type="text" name="linhaPesquisa.financiadores" size="26" value="${linhaPesquisa.financiadores}" > 
					
					<LABEL for="links"><fmt:message key="links"/>:</LABEL> 
					<INPUT type="text" name="linhaPesquisa.links" size="26" value="${linhaPesquisa.links}" >
				</p>
				<p>
					<LABEL for="descricao_detalhada"><fmt:message key="descricao_detalhada"/>:</LABEL>
					<textarea rows="4" cols="40" name="linhaPesquisa.descricaoDetalhada" >${linhaPesquisa.descricaoDetalhada}</textarea> 
					</p> 
				<p>				
					<LABEL for="membros"><fmt:message key="membros"/>:</LABEL>
					<SELECT NAME="membros[]" multiple="10" size="5">
					<c:forEach var="membro" items="${membroList}"> 
						<OPTION VALUE="${membro.id}">${membro.nome}</OPTION>
					</c:forEach>
					</SELECT> 
				</p>
				<p>
					<br> <INPUT value=<fmt:message key="cadastrar"/> type="submit">
					<INPUT value=<fmt:message key="limpar"/> type="reset">

				</p>
			</FORM>

		</div>

		<jsp:include page="/includes/tail.jsp" />